package cn.tedu_two.tedu_two;

import java.util.HashMap;
import java.util.Map;

public class Test2 {
    public static void main(String[] args) {
        Map<Integer,String> m=new HashMap();
        System.out.println(m);
        m.put(9527,"唐伯虎");
        m.put(9528,"秋香");
        m.put(9520,"石榴姐");
        m.put(9525,"石榴姐");
        m.put(9525,"石榴");
        System.out.println(m);

        System.out.println(m.containsKey(20));
        System.out.println(m.containsKey(9525));
        System.out.println(m.containsValue("xie"));
        System.out.println(m.containsValue("石榴"));
        //m.clear();
        System.out.println(m.get(9527));
        System.out.println(m.remove(9520));

    }
}
